package red.book._1._1;

/**
 * 
 * 计算三角形的斜边
 * @author wangbingwu
 *
 */
public class CalculatingBevelsOfRightTriangle {
	public static void main(String[] args) {
		double a = 3.0;
		double b = 4.0;
		
		System.out.println(hypotenuse(a, b));
	}
	
	public static double hypotenuse(double a, double b) {
		return Math.sqrt(a*a + b*b);
	}
}
